<template>
  <a-form :form="form" :label-col="{ span: 1.2 }" :wrapper-col="{ span: 24 }" @submit.prevent="handlerSubmit">
    <a-form-item label="处理结果" :colon="false">
      <a-radio-group
        v-decorator="[
          'value',
          {
            rules: [{ required: true, message: 'required' }]
          }
        ]"
      >
        <a-radio :value="0">
          取消订单，并发送邮件&短信提醒
        </a-radio>
        <a-radio :value="1">
          手动拨款成功
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-button type="primary" @click="handlerSubmit">
      提交
    </a-button>
  </a-form>
</template>

<script>
import form from './form'
import props from '../props'

export default {
  mixins: [props, form],

  data () {
    return {
      form: this.$form.createForm(this),
    }
  },
}
</script>
